package cn.ainit.sys.socket;

import java.util.List;

import javax.servlet.http.HttpSession;

import cn.ainit.common.SpringContextTool;

public class MsgThread extends Thread{
	@Override
	public void run() {
		super.run();
		MsgControllor controller =  (MsgControllor) SpringContextTool.getApplicationContext().getBean("msgControllor");
		try {
			while (true) {
				controller.loadMsg();
				sleep(5000);
			}
		}catch (Exception e) {
			e.printStackTrace();
		}
	}
}
